<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        function Person(name, sex) {
            this.aname = name;
            this.asex = sex;
        }
        var person = new Person('ArimaMisaki', 'fale');
        
        //对象中隐含属性__proto__记录原型对象prototype的地址
        console.log(person.__proto__);
        console.log(person.__proto__ == Person.prototype);

        //方法查找规则：先在自身寻找，找不到再去原型对象上找
        Person.prototype.aage = 13;
        console.log(person.aage);
    </script>

</body>

</html>